package service;

import bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 赵海军
 * @createTime 2020-01-16 17:41
 */
public interface IUerService {
    List<User> queryAll();

    User queryById(Integer id);

    void add(User user);

    void update(User user);

    void delete(User user);
    int login(@Param("username") String username, @Param("password") String password);
    int setSession(@Param("username") String username, @Param("password") String password);
}
